const state = {
  goods: [],
};
const mutations = {
  SET_GOODS: (state, goodsArr) => {
    state.goods = [...goodsArr];
  },
};
const actions = {
  saveGoodsTemporary({ commit }, goodsArr) {
    return new Promise((resolve) => {
      commit("SET_GOODS", goodsArr);
      resolve();
    });
  },
};
